package io.adrainty.bolee.file.models.bo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.adrainty.bolee.framework.commons.basic.BaseBO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;

/**
 * <p>FilePartBO</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 文件分片信息
 * @since 2025/8/18 14:34:29
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "文件分片信息")
@TableName("tab_file_part")
public class FilePartBO extends BaseBO {
    
    @Serial
    private static final long serialVersionUID = 4423826368112089433L;

    @Schema(description = "唯一上传id")
    private String uploadId;

    @Schema(description = "当前片数")
    private Integer partNumber;

    @Schema(description = "分片上传结果(json)")
    private String uploadResult;

    @Schema(description = "md5值")
    private String md5;

    @Schema(description = "存储空间名称")
    private String bucketName;

    @Schema(description = "文件名")
    private String fileName;

    @Schema(description = "存储源标识，参考FileConstant")
    private String storeFlag;

    @Schema(description = "企业号")
    private String companyNo;
    
}
